import request from '@/utils/request'


//登录请求
export function login (data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data,
  })

}

//获取用户基本资料
export function getUserInfo () {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}
/**
 * 获取某个用户的个人信息
 * **/
export function getUserDetailById (id) {
  return request({
    url: `/sys/user/${id}`
  })
}

export function logout () {

}




